package com.hzh.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hzh.entity.UserEntity;
import com.hzh.mapper.UserMapper;
import com.hzh.service.UserService;
@Service
public class UserServiceImpl implements UserService {

	@Autowired
    private UserMapper userMapper;
	@Override
	public UserEntity login(UserEntity user) {
		return userMapper.login(user);
	}
	@Override
	public UserEntity getByUserId(String userId) {
		return userMapper.getByUserId(userId);
	}
}
